-- GENERATED SPELL FOR [Sentinel Leader] --


function spell0_17210(pUnit, Event) --@Backstab,n/a--
pUnit:FullCastSpellOnTarget(7159,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17210', 556, 1)
end

function spell1_17210(pUnit, Event) --@Sinister Strike,n/a--
pUnit:FullCastSpellOnTarget(14873,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17210', 591, 1)
end

function Sorts_17210(pUnit, Event)
local choix_sorts_17210 = math.random(0, 1)
if choix_sorts_17210 == 0 then
pUnit:RegisterEvent('spell0_17210', 1, 1)
end
if choix_sorts_17210 == 1 then
pUnit:RegisterEvent('spell1_17210', 1, 1)
end
end

function mob17210_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17210', math.random(1500, 3000), 1)
end

function mob17210_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17210_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17210_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17210, 1, 'mob17210_Action')
RegisterUnitEvent(17210, 2, 'mob17210_Leave')
RegisterUnitEvent(17210, 3, 'mob17210_Kill')
RegisterUnitEvent(17210, 4, 'mob17210_Die')
